import request from '@/utils/request';

// 广告列表
export const getBannerList = params => {
  return request({
    url: '/Article/banner-list',
    method: 'get',
    params
  })
};
// 删除广告
export const deleteBannerList = data => {
  return request({
    url: '/Article/banner-delete',
    method: 'post',
    data
  })
};
// 新增广告
export const addBanner = (url, data) => {
  return request({
    url,
    method: 'post',
    data
  })
};
// 获取广告详情
export const getBannerDetail = (params) => {
  return request({
    url: '/Article/banner-details',
    method: 'get',
    params
  })
};